home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / rl / build-bin / process-all-images < prev    next >
Encoding:
Text File  |  2002-06-17  |  763 b   |  43 lines

  1. #!/bin/sh
  2. # mount-all-images
  3. # copyleft (c) 2000, joseph cheek, joseph@lycoris.com.  released under
  4. # GPL.
  5. # mount-all-images:
  6. # mount all of the (cd, floppy, ramdisk) images from a build in the
  7. # current build directory.
  8. # ex: mount-all-images -l en
  9.  
  10. LANG=
  11. MNT="/opt/redmondlinux/builds/mnt"
  12.  
  13. if [ "n$1" = "n-l" ]; then # -l
  14.   LANG="$2"
  15.   shift
  16.   shift
  17. fi
  18.  
  19. if [ -z "$LANG"  ]; then
  20.   echo -e `basename $0` \[-l lang\]: need lang \\a
  21.   exit 1
  22. fi
  23.  
  24. # BUILD_BASE=/opt/redmondlinux/builds/current/$LANG
  25. BUILD_BASE=/opt/redmondlinux/builds/current/en
  26.  
  27. # redo builds
  28.  
  29. for a in cd scsi pcmcia cd_ramdisk; do
  30.   echo $a
  31.   cd $MNT/$a
  32.   "$BUILD_BASE"/rl/build-bin/boot-images/buildit-$a.sh -l $LANG
  33. done
  34.  
  35. # show results
  36.  
  37. cd $MNT
  38. df -k
  39. dir -l {cd,install}/initrd.gz
  40.